﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="PoolDS" targetNamespace="http://tempuri.org/PoolDS.xsd" xmlns:mstns="http://tempuri.org/PoolDS.xsd" xmlns="http://tempuri.org/PoolDS.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="UcConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Public" Name="UcConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.UCENTRIK.Properties.Settings.GlobalReference.Default.UcConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PoolDSTableAdapter" GeneratorDataComponentClassName="PoolDSTableAdapter" Name="PoolDS" UserDataComponentName="PoolDSTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_pool_select" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_pool_delete</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@agent_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="agent_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_pool_insert</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@agent_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="agent_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_pool_select</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@agent_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="agent_id" DataSetColumn="agent_id" />
              <Mapping SourceColumn="is_available" DataSetColumn="is_available" />
              <Mapping SourceColumn="is_busy" DataSetColumn="is_busy" />
              <Mapping SourceColumn="last_call_time" DataSetColumn="last_call_time" />
              <Mapping SourceColumn="incident_id" DataSetColumn="incident_id" />
              <Mapping SourceColumn="date_created" DataSetColumn="date_created" />
              <Mapping SourceColumn="date_accessed" DataSetColumn="date_accessed" />
              <Mapping SourceColumn="date_reserved" DataSetColumn="date_reserved" />
              <Mapping SourceColumn="agent_first_name" DataSetColumn="agent_first_name" />
              <Mapping SourceColumn="agent_last_name" DataSetColumn="agent_last_name" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_pool_get_all" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetAllPoolAgents" GetMethodModifier="Public" GetMethodName="GetAllPoolAgents" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetAllPoolAgents" UserSourceName="GetAllPoolAgents">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_pool_get_all</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_pool_set_available" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="SetPoolAgentAvailable" Modifier="Public" Name="SetPoolAgentAvailable" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="SetPoolAgentAvailable">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_pool_set_available</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@agent_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@is_available" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_pool_set_busy" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="SetPoolAgentBusy" Modifier="Public" Name="SetPoolAgentBusy" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="SetPoolAgentBusy">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_pool_set_busy</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@agent_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@is_busy" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_pool_set_incident" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="SetPoolAgentIncident" Modifier="Public" Name="SetPoolAgentIncident" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="SetPoolAgentIncident">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_pool_set_incident</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@agent_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@incident_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="UcConnectionString (Settings)" DbObjectName="UC_WEB.dbo.usp_pool_set_session" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="SetPoolAgentSession" Modifier="Public" Name="SetPoolAgentSession" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="SetPoolAgentSession">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.usp_pool_set_session</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@agent_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@incident_id" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="PoolDS" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="PoolDS" msprop:Generator_DataSetName="PoolDS" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="PoolDS" msprop:Generator_UserTableName="PoolDS" msprop:Generator_RowDeletedName="PoolDSRowDeleted" msprop:Generator_RowChangedName="PoolDSRowChanged" msprop:Generator_RowClassName="PoolDSRow" msprop:Generator_RowChangingName="PoolDSRowChanging" msprop:Generator_RowEvArgName="PoolDSRowChangeEvent" msprop:Generator_RowEvHandlerName="PoolDSRowChangeEventHandler" msprop:Generator_TableClassName="PoolDSDataTable" msprop:Generator_TableVarName="tablePoolDS" msprop:Generator_RowDeletingName="PoolDSRowDeleting" msprop:Generator_TablePropName="_PoolDS">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="agent_id" msprop:Generator_UserColumnName="agent_id" msprop:Generator_ColumnVarNameInTable="columnagent_id" msprop:Generator_ColumnPropNameInRow="agent_id" msprop:Generator_ColumnPropNameInTable="agent_idColumn" type="xs:int" />
              <xs:element name="is_available" msprop:Generator_UserColumnName="is_available" msprop:Generator_ColumnVarNameInTable="columnis_available" msprop:Generator_ColumnPropNameInRow="is_available" msprop:Generator_ColumnPropNameInTable="is_availableColumn" type="xs:boolean" />
              <xs:element name="is_busy" msprop:Generator_UserColumnName="is_busy" msprop:Generator_ColumnVarNameInTable="columnis_busy" msprop:Generator_ColumnPropNameInRow="is_busy" msprop:Generator_ColumnPropNameInTable="is_busyColumn" type="xs:boolean" />
              <xs:element name="last_call_time" msprop:Generator_UserColumnName="last_call_time" msprop:Generator_ColumnVarNameInTable="columnlast_call_time" msprop:Generator_ColumnPropNameInRow="last_call_time" msprop:Generator_ColumnPropNameInTable="last_call_timeColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="incident_id" msprop:Generator_UserColumnName="incident_id" msprop:Generator_ColumnVarNameInTable="columnincident_id" msprop:Generator_ColumnPropNameInRow="incident_id" msprop:Generator_ColumnPropNameInTable="incident_idColumn" type="xs:int" minOccurs="0" />
              <xs:element name="date_created" msprop:Generator_UserColumnName="date_created" msprop:Generator_ColumnVarNameInTable="columndate_created" msprop:Generator_ColumnPropNameInRow="date_created" msprop:Generator_ColumnPropNameInTable="date_createdColumn" type="xs:dateTime" />
              <xs:element name="date_accessed" msprop:Generator_UserColumnName="date_accessed" msprop:Generator_ColumnVarNameInTable="columndate_accessed" msprop:Generator_ColumnPropNameInRow="date_accessed" msprop:Generator_ColumnPropNameInTable="date_accessedColumn" type="xs:dateTime" />
              <xs:element name="date_reserved" msprop:Generator_UserColumnName="date_reserved" msprop:Generator_ColumnVarNameInTable="columndate_reserved" msprop:Generator_ColumnPropNameInRow="date_reserved" msprop:Generator_ColumnPropNameInTable="date_reservedColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="agent_first_name" msprop:Generator_UserColumnName="agent_first_name" msprop:Generator_ColumnPropNameInRow="agent_first_name" msprop:Generator_ColumnVarNameInTable="columnagent_first_name" msprop:Generator_ColumnPropNameInTable="agent_first_nameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="agent_last_name" msprop:Generator_UserColumnName="agent_last_name" msprop:Generator_ColumnPropNameInRow="agent_last_name" msprop:Generator_ColumnVarNameInTable="columnagent_last_name" msprop:Generator_ColumnPropNameInTable="agent_last_nameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="agent_full_name" msprop:Generator_UserColumnName="agent_full_name" msprop:nullValue="_null" msprop:Generator_ColumnPropNameInRow="agent_full_name" msprop:Generator_ColumnPropNameInTable="agent_full_nameColumn" msprop:Generator_ColumnVarNameInTable="columnagent_full_name" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>